#!/usr/bin/env python
# encoding: utf-8
'''
@author: caopeng
@license: (C) Copyright 1999-2017, Fiberhome Telecommunication Technologies Co.,LTD.
@contact: gjzuo@fiberhome.com
@software: garner
@file: msg.py
@time: 2018/4/12 14:58
@desc:
'''

class Command(object):

    @staticmethod
    def init_app(app):
        pass

class WebCommand(Command):
    GET_VNF_INFO = "GET_VNF_INFO"
    DEPLOY_GAMES = "DEPLOY_GAMES"
    CREATE_VNF = "CREATE_VNF"
    DELETE_VNF = "DELETE_VNF"
    RESTART_VNF = "RESTART_VNF"
    SHUTDOWN_VNF = "SHUTDOWN_VNF"
    START_VNF = "START_VNF"


class agentSystemCommand(Command):
    ONLINE_REPORT =  101
    SINGLE_NOTICE = 102
    GROUP_NOTICE = 103
    BROADCAST_NOTICE = 104

class serverCommand(Command):
    ONLINE_REPORT = 1
    SINGLE_NOTICE = 2
    GROUP_NOTICE = 3
    BROADCAST_NOTICE = 4
    HEARTBEAT = 5
    HOST_REPORT = 6


command = {
    'webCommand':WebCommand,
    'agentCommand':agentSystemCommand,
    'serverCommand': serverCommand
    }

